package com.dearbinge.data.dao;

import com.dearbinge.data.pojo.rocket.Rocket;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface RocketMapper {
    Integer update(Rocket rocket);

    Integer insert(Rocket rocket);

    Map<String,Object> getByUserId(@Param("userId") String userId, @Param("rocketType") Integer rocketType);

    Integer delete(Integer id);

    void timerNumber();

    Integer getNumber(String userId);

    Integer deleteAll();

    List<Rocket> getById(String userId);
}
